<?php
if(has_post_thumbnail()){
	$image = get_post_thumbnail_id();
	$image = wp_get_attachment_image_src($image, 'destaque_top');
	$image = $image[0];
}else{
	$image = get_bloginfo('template_url')."/images/default-header-background.jpg";
}
$url = site_url();

if(is_home()){
	$title = get_bloginfo('name');
}elseif(is_category()){
	$title = single_cat_title('', false);
}else{
	$title = get_the_title();
}
?> 
<!DOCTYPE html>
<!--[if IE 6]>
<html id="ie6" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 7]>
<html id="ie7" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 8]>
<html id="ie8" <?php language_attributes(); ?>>
<![endif]-->
<!--[if !(IE 6) | !(IE 7) | !(IE 8)  ]><!-->
<html <?php language_attributes(); ?>>
<!--<![endif]-->
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="robots" content="follow, all" />
<meta name="distribution" content="global" />
<meta property="og:image" content="<?php echo primeira_img();?>"/>
<meta property="og:url" content="<?php the_permalink(); ?>"/>
<meta property="og:title" content="<?php echo $title;?>"/>
<meta property="fb:app_id" content="648477168503275">
<title>
<?php
	echo $title;
?>
</title>
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<!--[if gte IE 9]>
  <style type="text/css">
    .gradient {
       filter: none;
    }
  </style>
<![endif]-->
<link media="all" type="text/css" href="http://fonts.googleapis.com/css?family=Roboto+Condensed%3An%2Ci%2Cb%2Cbi&amp;subset=latin&amp;ver=3.6" id="Google-Font-Roboto+Condensed-css" rel="stylesheet">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
<link rel="shortcut icon" type="image/icon" href="<?php bloginfo('template_url'); ?>/images/favicon.ico"/>

<!--[if lt IE 7]><script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE7.js"></script><![endif]-->
<!--[if lt IE 8]><script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE8.js"></script><![endif]-->
<!--[if lt IE 9]><script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script><![endif]-->

<?php 
wp_head();
?>
<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-8208085-19', 'promocaodepassagem.com.br');
  ga('send', 'pageview');

</script>
</head>
<body <?php body_class(); ?>>
<div class="wapper_general">	
	<header class="top" style="background: url('<?php echo $image;?>') center 0;">
		<div class="top_navigation repeat_v">
			<div class="top_container container">
				<div class="top_social_wrapper right">
					<div class="social-wrapper gdl-retina" id="gdl-social-icon">
						<div class="social-icon-wrapper">
							<!-- 
							<div class="social_icon left margin_r_5">
								<a href="#" target="_blank">
									<img width="22" height="22" alt="facebook" src="http://themes.goodlayers2.com/tourpackage/wp-content/themes/packagetour/images/icon/social-icon/facebook.png">
								</a>
							</div>							
							<div class="social_icon left margin_r_5">
								<a href="#" target="_blank">
									<img width="22" height="22" alt="twitter" src="http://themes.goodlayers2.com/tourpackage/wp-content/themes/packagetour/images/icon/social-icon/twitter.png">
								</a>
							</div>
							<div class="social_icon left margin_r_5">
								<a href="#" target="_blank">
									<img width="22" height="22" alt="email" src="http://themes.goodlayers2.com/tourpackage/wp-content/themes/packagetour/images/icon/social-icon/email.png">
								</a>
							</div>	
							 -->						
						</div>
					</div>
				</div>
			</div>			
		</div>	
		<div class="mid_navigation repeat_v clear">
			<div class="mid_container container">
				<div class="logo_wrapper left">
					<a href="<?php echo $url;?>">
						<img alt="" src="<?php bloginfo('template_url'); ?>/images/logo.png">
					</a>						
				</div>
				<div class="right">					
					<ul class="menu" id="menu-top-menu">
						<li class="menu_item left"><a class="white g_font" href="<?php echo $url;?>">Home</a></li>
						<li class="menu_item left"><a class="white g_font" href="<?php echo $url;?>/passagem-em/promocao/">Promoções</a></li>
						<li class="menu_item left"><a class="white g_font" href="<?php echo $url;?>/quem-somos/">Quem Somos</a></li>
						<li class="menu_item left"><a class="white g_font" href="<?php echo $url;?>/contato/">Contato</a></li>						
					</ul>
				</div>
			</div>			
		</div>
		<div class="relative clear">
			<div class="page_header_overlay"></div>
			<div class="relative container">
				<div class="page_header_container_title">
					<h1 class="page_header_title g_font"><?php echo $title;?></h1>	
				</div>
			</div>
		</div>
	</header>
	<section class="clear block overflow">
		